﻿using System.Collections.Generic;
using System.Threading.Tasks;
using TradeDataAPI.Core.Common.req;
using TradeDataAPI.Core.Utilities;
using TradeDataAPI.Entity.DomainModels;

namespace TradeDataAPI.System.IServices
{
    public partial interface ISysUserService
    {

        Task<WebResponseContent> Login(LoginInfo loginInfo, bool verificationCode = true);
        Task<WebResponseContent> ReplaceToken();
        Task<WebResponseContent> ModifyPwd(string oldPwd, string newPwd);
        Task<WebResponseContent> GetCurrentUserInfo();



        Task<WebResponseContent> UpdateUserAsync(UpdateUserAsyncReq req);
        Task<WebResponseContent> DelUserAsync(int UserId);
        Task<WebResponseContent> AddUserAsync(AddUserAsyncReq req);
        Task<WebResponseContent> GetSysUserList();

        Task<List<SysUser>> GetUserListByRoleId(List<int> RoleIds);
    }
}

